LOCAL_PATH:= $(call my-dir)
 
CFLAGS := -Wpointer-arith -Wwrite-strings -Wunused -Winline \
 -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long \
 -Wfloat-equal -Wno-multichar -Wsign-compare -Wno-format-nonliteral \
 -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement \
 -Wno-system-headers -DHAVE_CONFIG_H -DBUILDING_LIBCURL
 
include $(CLEAR_VARS)

LOCAL_C_INCLUDES += $(LOCAL_PATH)/include/ $(LOCAL_PATH)/lib\
					$(LOCAL_PATH)/lib/openssl/include \
					$(LOCAL_PATH)/lib/zlib/include
					
include $(LOCAL_PATH)/lib/Makefile.inc
 
LOCAL_SRC_FILES := $(addprefix lib/,$(CSOURCES))
LOCAL_CFLAGS += $(CFLAGS)


 
LOCAL_COPY_HEADERS_TO := libcurl
LOCAL_COPY_HEADERS := $(addprefix include/curl/,$(HHEADERS))


LOCAL_LDFLAGS := -L$(LOCAL_PATH)/lib/openssl/lib/ -lcrypto \
							     -L$(LOCAL_PATH)/lib/openssl/lib/ -lssl \
							     -L$(LOCAL_PATH)/lib/zlib/lib/ -lz

LOCAL_MODULE:= libcurl
 
include $(BUILD_STATIC_LIBRARY)
